package com.cheng.rebuildproject.controller;

import com.cheng.rebuildproject.pojo.ResponseResult;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController

public class TestController {
    @RequestMapping("/user/test")
    @PreAuthorize("hasAuthority('sys:pop')")
    public ResponseResult test(){
        return new ResponseResult(200,"测试成功");
    }
}
